#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QLineEdit>
#include <QComboBox>
#include <QPushButton>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QLabel>
#include <QFileDialog>
#include <QImage>
#include <QPixmap>
#include <QPainter>
#include <QJsonObject>
#include <QJsonArray>
#include <QJsonDocument>
#include <QLocalSocket>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void onOpenButtonClicked();
    void onSelectImagesButtonClicked();
    void onClearImagesButtonClicked();
    void onSendButtonClicked();

private:
    Ui::MainWindow *ui;
    QLineEdit *screenNameEdit;
    QComboBox *screenCountCombo;
    QPushButton *openButton;
    QPushButton *selectImagesButton;
    QPushButton *clearImagesButton;
    QPushButton *sendButton;
    QWidget *previewWidget;
    QVBoxLayout *previewLayout;
    QStringList selectedImages;
    QLabel *statusLabel; // 添加状态提示标签声明
};
#endif // MAINWINDOW_H
